#import "ManagerAFNetWorking.h"
#import "Response.h"

typedef void (^BaseHandler)  (Response *resp,NSError *error);
typedef void (^LoginHandler) (ResponseLogin *resp,NSError *error);
typedef void (^UserInfoHandler) (ResponseUserInfo *resp,NSError *error);
typedef void (^FisherIndexHandler) (ResponseFisherIndex *resp,NSError *error);
typedef void (^MyFishHandler) (ResponseMyFishList *resp,NSError *error);
typedef void (^OceanHandler) (ResponseOcean *resp,NSError *error);
typedef void (^FishDetailHandler) (ResponseFishDetail *resp,NSError *error);
typedef void (^EvolveAttrHandler) (ResponseEvolveAttr *resp,NSError *error);
typedef void (^GoAdventureHandler) (ResponseGoAdventure *result,NSError *error);
typedef void (^BuyCheckHandler) (ResponseBuyCheck *result,NSError *error);
typedef void (^FishMapHandler) (ResponseFishMap *result,NSError *error);
typedef void (^FishAwardHandler) (ResponseFishAward *result,NSError *error);
typedef void (^OfferIndexHandler) (ResponseOfferIndex *result,NSError *error);
typedef void (^OfferGoHandler) (ResponseOffGo *result,NSError *error);

@interface Api : HttpObject

// 登录
+(void)apiLogin:(NSString*)moblie password:(NSString*)password handler:(LoginHandler)handler;

// 用户资料
+(void)apiUserInfoHandler:(UserInfoHandler)handler;

// 渔场信息
+(void)apiFisheryIndex:(FisherIndexHandler)handler;

// 我的鱼列表
+(void)apiMyFishHandler:(MyFishHandler)handler;

// 体力获取
+(void)apiOceanHandler:(OceanHandler)handler;

// 我的鱼详情页
+(void)apiFishDetail:(NSNumber*)level type:(NSNumber*)type career:(NSNumber*)career handler:(FishDetailHandler)handler;

// 进化参数获取
+(void)apiEvolveAttr:(NSNumber*)fish_id career:(NSNumber*)career handler:(EvolveAttrHandler)handler;

// 探索
+(void)apiAdventure:(NSNumber*)ocean_id handler:(GoAdventureHandler)handler;

// 自动选择鱼苗 - id
+(void)apiAutoSelect:(NSNumber*)fish_id handler:(FishDetailHandler)handler;

// 吞噬
+(void)apiEatFish:(NSNumber*)fish_id target_fishId:(NSNumber*)target_fishId count:(NSNumber*)count handler:(BaseHandler)handler;

// 进化接口
+(void)apiJinghua:(NSNumber*)fish_id handler:(BaseHandler)handler;

// 查询购买
+(void)apiBuyCheck:(BuyCheckHandler)handler;

// 购买ETH
+(void)apiBuy:(BaseHandler)handler;

// 购买鱼苗
+(void)apiBuyMiniFish:(NSNumber*)countryId fisheryId:(NSNumber*)fisheryId count:(NSNumber*)count handler:(BaseHandler)handler;

// 查看鱼苗数 鱼苗价格
+(void)apiMyMiniFishNum:(NSNumber*)fisheryId handler:(MyFishHandler)handler;

// 渔场信息
+(void)apiFishMap:(FishMapHandler)handler;

// 钓鱼
+(void)apiFisingWithSucc:(NSNumber*)type mapid:(NSNumber*)mapid handler:(FishAwardHandler)handler;

// 获取献祭列表
+(void)apiOfferListWithHandler:(OfferIndexHandler)handler;

// 献祭接口
+(void)apiOfferGoWithFishId:(NSNumber*)fishId fishLevel:(NSNumber*)level handler:(OfferGoHandler)handler;

@end
